<!DOCTYPE html>
<html lang="en"  xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="UTF-8">
  <title>路径</title>
</head>
<body>
    <h1>获取图片路径</h1>
    <img src="b.jpg" width="100">
    <img th:src="${user.url}" width="100">
    <img src="/b.jpg" width="100">
    <img th:src="@{'/'+${user.url}}" width="100">
    <img th:src="@{|/${user.url}|}" width="100">

</body>
</html>